package com.mr.cai.main.activity.base;

import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.mr.cai.main.manager.ActivityManager;

/**
 * Created by hai8108 on 16/2/5.
 */
public class MrCaiBaseActivity extends FragmentActivity {
    @Override
    public void onCreate (Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityManager.addActicity(this);
    }

    @Override
    protected void onResume () {
        super.onResume();
        // 页面开始
    }

    @Override
    protected void onPause () {
        super.onPause();
        // 页面结束
    }

    @Override
    protected void onDestroy () {
        super.onDestroy();
        ActivityManager.removeActivity(this);
    }

    @Override
    public void onConfigurationChanged (Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }
}